﻿#region
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using EndlessDownloader.Engine;

#endregion

namespace EndlessDownloader
{
    public partial class PictureViewer : UserControl
    {
        public PictureViewer()
        {
            InitializeComponent();

            lblLabel.Text = string.Empty;
        }

        [Browsable(false)]
        public Picture Picture { get; set; }

        public void Initialize(Picture picture)
        {
            Picture = picture;

            lblLabel.Text = picture.FileName;
        }

        public void SetAsCompleted()
        {
//            lblLabel.Font = new Font(lblLabel.Font, FontStyle.Strikeout);
            lblLabel.BackColor = Color.Khaki;
        }
    }
}